package com.aliyun.messagemgt.web.controller;


import com.aliyun.messagemgt.application.service.InterFaceLogService;
import com.aliyun.messagemgt.dto.query.InterFaceLogQuery;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 *@Author Znight
 *@Date 15:16 2019/6/9
 */
@Api(tags = "接口管理相关接口")
@CrossOrigin
@RestController
@RequestMapping(value = "/interFace")
public class InterFaceLogController {

    @Resource
    InterFaceLogService interFaceLogService;

    @Value("${upload.basedir}")
    private String filePath;
    @Value("${interFaceLog.number}")
    private int interFaceLogNumber;

    @RequestMapping("/list")
    public Object interFaceList(@RequestBody InterFaceLogQuery interFaceLog) {
        return interFaceLogService.queryInterfaceLogList(interFaceLog);
    }
}
